import React from 'react'
import './voted-notice.css'
const VotedNotice = props => {

    return <div className={props.isHome ? 'voted-notice voted-notice-home' : 'voted-notice voted-notice-away'} onAnimationEnd={() => props.onVotedNoticeEnd()}>
        <p className='voted-notice-team-text'>
            已加入
            <span className='voted-notice-team-name'>{props.teamData.name_zh}</span>
            阵营
        </p>
        <p className='voted-notice-addition-text'>
            胜利终将属于我们
        </p>
    </div>
}

export default VotedNotice